<template>
  <view class="list">
    <view v-for="item in tabList" :key="item.id" class="tab" @click="goNav(item)">{{
      item.title
    }}</view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      tabList: [
        {
          id: 0,
          title: "待提货",
        },
        {
          id: 1,
          title: "待发货",
        },
        {
          id: 2,
          title: "已发货",
        },
        {
          id: 3,
          title: "待评价",
        },
        {
          id: 4,
          title: "已完成",
        },
      ],
    };
  },
  methods:{
	goNav(row){
		uni.navigateTo({
			 url: `/package/mine/bag?type=${row.id}`
		});
	}
  }
};
</script>

<style lang="scss" scoped>
.list {
  width: 100vw;
  height: 100vh;
  background-color: #f2f2f2;
  padding: 20rpx;
  box-sizing: border-box;
  .tab{
	padding: 20rpx 30rpx;
	background-color: #fff;
	color: #333;
	font-size: 32rpx;
	margin-bottom: 20rpx;
	border-radius: 20rpx;
	box-shadow: 0 0 10rpx #ddd;
	width: 100%;
	box-sizing: border-box;
  }
}
</style>
